﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Innovative.Atom.Timer.Event
{
	public class AtomEventData
	{
		public long EventId { get; set; }
		public string EventName { get; set; }
		public DateTime ExpectedDateTime { get; set; }
		public DateTime ActualDateTime { get; set; }

		public TimeSpan Offset
		{
			get
			{
				return this.ExpectedDateTime.Subtract(this.ActualDateTime);
			}
		}

		public override string ToString()
		{
			return string.Format("{0} [{1}] (Offset = {2})", this.EventName, this.EventId, this.Offset);
		}
	}
}
